package com.jic.market.request.rest.discountamount;

import com.jic.common.base.vo.AdminOperate;
import com.jic.market.request.rest.discount.PromotionGoods;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author yinhaijun
 * @date: 2020/4/17
 */
@Data
public class GrouponDiscountAmountOrderCreateRequest implements Serializable {
    private AdminOperate adminOperate;
    @ApiModelProperty(notes = "测试用的活动类型", required = false)
    private Integer frontPromotionType;
    @NotEmpty(message = "第三方用户id不能为空")
    @ApiModelProperty(notes = "第三方用户id", required = true)
    private String thirdUserId;

    @NotEmpty(message = "拼团活动编号不能为空")
    @ApiModelProperty(notes = "拼团活动编号", required = true)
    private String promotionCode;

    @Valid
    @NotEmpty(message = "商品集合不能为空")
    @ApiModelProperty(notes = "商品集合", required = true)
    private List<PromotionGoods> promotionGoodsList;

    @ApiModelProperty(notes = "活动实例编码，参团必须传，开团的时候会返回", required = false)
    private String grouponInstCode;

    @NotNull(message = "开参团flag不能为空")
    @ApiModelProperty(notes = "开参团flag  1 开团，0 参团", required = true)
    private Integer launchFlag;

    @NotEmpty(message = "订单号不能为空")
    @ApiModelProperty(notes = "订单号", required = true)
    private String orderNo;
    @NotNull(message = "创建时间不能为空")
    @ApiModelProperty(notes = "创建时间", required = true)
    private Date orderCreateTime;
    @ApiModelProperty(notes = "优惠劵", required = false)
    private List<String> couponCodeList;


}
